package com.example.demo02.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * (Orders)表实体类
 *
 * @author makejava
 * @since 2024-09-01 20:15:25
 */
@TableName("orders")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders implements Serializable {


    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;//主键

    private Date orderDate;//订单日期

    private Integer customerId;//顾客id

    private Double orderTotalAmount;//订单总金额

    @TableField(exist = false)
    private List<OrderDetails> orderDetails;//订单详情

}

